import { Component } from '@angular/core';

@Component({
  selector: 'app-demo2',
  templateUrl: './demo2.component.html',
})
export class Demo2Component {
  val = true;

  check() {
    if(this.val) {
      this.val = false;
    }else{
      this.val = true;
    }
  }
}